﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Wap/Agent/AgentSite.Master" AutoEventWireup="true" CodeBehind="ModifyPassword.aspx.cs" Inherits="ZLCMS.Web.Wap.Agent.ModifyPassword" %>
<%@ Register src="Footer.ascx" tagname="Footer" tagprefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
	#mypage .ui-input-text{ margin:0;box-shadow:none; border:none; background:none;}
	#mypage .ui-input-text input{margin-top:6px;}
	.msg-box {
    float: right;
    margin-top: -20px;
    position: relative;
}
    </style>
    <link rel="stylesheet" href="/wap/lib/validator-0.7.0/css/jquery.validator.css" />
    <script type="text/javascript" src="/wap/lib/validator-0.7.0/jquery.validator.js"></script>
    <script type="text/javascript" src="/wap/lib/validator-0.7.0/local/zh_CN.js"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="pages" runat="server">

<div data-role="page" id="mypage">

	<div data-role="header">
	</div><!-- /header -->

	<div role="main" class="ui-content">
        
        <!--s change_password-->
        <div id="change_password">
        	<form id="change_password_form" command="User.ModifyPassword">
            <input type="hidden" command-param="UserAccount" value="<%=UserCode %>">
            	<div class="box">
                    <div class="left"><img src="images/change_password.png"></div>
                    <div class="right"><input type="password" placeholder="原始密码"  name="password" command-param="OldPassword" data-rule="required;password"></div>
                </div>
                <div class="box">
                    <div class="left"><img src="images/change_newpassword.png"></div>
                    <div class="right"><input type="password" placeholder="新密码"  name="npassword1" command-param="NewPassword" data-rule="密码:required;password"></div>
                </div>
                <div class="box">
                    <div class="left"><img src="images/change_newpassword.png"></div>
                    <div class="right"><input type="password" placeholder="确认密码"  name="npassword2" data-rule="确认密码:required;match(npassword1);"></div>
                </div>
                <div class="button">
                	<input onclick="executeFormCommonCommand('change_password_form', modifyDone);" type="button" value="确 定" data-shadow="false" data-theme="n">
                </div>
            </form>
        </div>
        <!--e change_password-->
        
  	</div><!-- /content -->

    <div data-role="footer" data-position="fixed" data-tap-toggle="false">   
                <uc1:Footer ID="Footer1" runat="server" />    
    </div><!-- /footer -->
    
</div><!-- /page -->
<script type="text/javascript">
    function modifyDone() {
        showTips("密码修改成功！", 500, function () {
            location.href = '/wap/agent/';
        });
    }
</script>
</asp:Content>
